package ml.coursedesign.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import ml.coursedesign.entity.Course;
import ml.coursedesign.mapper.CourseMapper;
import ml.coursedesign.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 课程管理，服务实现类
 *
 * @author likeqc.top
 * @since 2021-04-27
 */
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements CourseService {

  @Autowired
  CourseMapper courseMapper;

  public IPage<Map> getList(Page page) {
    return courseMapper.getList(page);
  }
}
